<template>
	<view class="user">
		<div class="topimg">
			<image src="../../../static/header.png" class="img"></image>
			<text>{{name}}</text>
		</div>
		<view class="out" @click="go">
			<text>登录</text>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				name: '请先登录'
			}
		},
		methods: {
			go() {
				uni.navigateTo({
					url: '/pages/login/login?a=a'
				})
			}
		}
	}
</script>

<style lang="scss">
	.user {
		width: 100vw;
		height: 100vh;

		.topimg {
			margin-top: 1vh;
			width: 100vw;
			height: 8vh;
			display: flex;
			align-items: center;

			.img {
				margin-left: 20rpx;
				width: 15%;
				height: 80%;
				border-radius: 50%;
			}

			text {
				margin-left: 20rpx;
			}

			.txt {
				margin-left: 80rpx;
				color: orangered;
			}
		}

		.out {

			// margin-top: 20rpx;
			margin: 20rpx auto;
			width: 85vw;
			height: 7vh;
			background-color: orangered;
			display: flex;
			justify-content: center;
			align-items: center;
			font-size: 35rpx;
			border-radius: 25rpx;
			color: white;
		}

	}
</style>